package com.stlm2.dems.dao.impl;

import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Repository;

import com.stlm2.dems.entity.Config;
import com.stlm2.dems.dao.ConfigDao;
import com.stlm2.core.base.impl.BaseDaoImpl;

@Repository("configDao")
public class ConfigDaoImpl extends BaseDaoImpl<Config> implements ConfigDao  {

    @Override
    public Config getByName(String name) {
        if(StringUtils.isBlank(name))
            return null;
        return selectOne("getByName", name);
    }
}